package com.wg.dome.entity.config;

import com.wg.db.annotation.EntityField;
import com.wg.db.annotation.EntityTable;
import com.wg.db.schema.AccessLevel;

import java.io.Serializable;

@EntityTable(tableName = "static_skill", accessLevel = AccessLevel.ReadOnly)
public class SkillEntity implements Serializable {
    @EntityField(isKey = true)
    private int id;

    /**
     * 技能名称
     */
    @EntityField
    private String name;

    /**
     * 技能伤害 百分比
     */
    @EntityField
    private float damage;

    /**
     * 伤害类型 0:物理伤害   1:魔法伤害
     */
    @EntityField(fieldName = "damage_type")
    private byte damageType;

    /**
     * 范围  0:单个   1:多个    2:全体
     */
    @EntityField
    private String info;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public float getDamage() {
        return damage;
    }

    public void setDamage(float damage) {
        this.damage = damage;
    }

    public byte getDamageType() {
        return damageType;
    }

    public void setDamageType(byte damageType) {
        this.damageType = damageType;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }
}
